const path = require('path');
const { resolvePath } = require('./commons');


let cv = null
try {
  cv = require("./Release/opencv4nodejs.node");
} catch (err) {

}

// resolve haarcascade files
/*const { haarCascades, lbpCascades } = cv;
Object.keys(haarCascades).forEach(
  key => cv[key] = resolvePath(path.join(__dirname, './haarcascades'), haarCascades[key]));
Object.keys(lbpCascades).forEach(
  key => cv[key] = resolvePath(path.join(__dirname, './lbpcascades'), lbpCascades[key]));*/

module.exports = cv;